import getApiData from "@/services/cpasRequest";

// 判断 科目、科目编号是否重复
export async function getSubjectInfo(params: {
  dbname: string;
  Data_ID: string;
  KMMC?: string,
  KMBH?: string | number,
  YSKMBH?: string | number
}) {
  const res = await getApiData("account.subject.getSubjectInfo", params);
  if (res.ok) {
    return res
  } else {
    return res
  }
}
